package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

/**
 * @author 梦龙
 * @date 2023/12/13 10:43
 */
public interface ReportService {

    /**
     * @description:统计指定时间区间的营业额数据
     * @return: com.sky.vo.TurnoverReportVO
     * @author: 梦龙
     * @time: 2023/12/13 10:45
     */
    TurnoverReportVO getTurnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * @description:统计指定时间区间的用户数据
     * @return: java.lang.Object
     * @author: 梦龙
     * @time: 2023/12/13 14:35
     */
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

    /**
     * @description:统计指定时间内的订单数量统计
     * @return: com.sky.vo.OrderReportVO
     * @author: 梦龙
     * @time: 2023/12/13 15:45
     */
    OrderReportVO getOrdersStatistic(LocalDate begin, LocalDate end);

    /**
     * @description:统计销量排名前十的数据
     * @return: com.sky.vo.OrderReportVO
     * @author: 梦龙
     * @time: 2023/12/13 15:45
     */
    SalesTop10ReportVO getSalesTop10(LocalDate begin, LocalDate end);

    /**
     * @description:导出运营数据报表
     * @return: void
     * @author: 梦龙
     * @time: 2023/12/14 11:16
     */
    void exportBusinessData(HttpServletResponse response);
}
